package edu.ccut.saturn.operation.database;

import java.sql.Connection;
import java.util.ArrayList;

import edu.ccut.saturn.component.SaturnData;

public class QueryByCondition   {
	private static edu.ccut.saturn.basecomponent.database.facade.QueryByCondition facade = null;
	private static QueryByCondition instance  = new QueryByCondition();
    private QueryByCondition(){
    	facade = new edu.ccut.saturn.basecomponent.database.facade.QueryByCondition();
    };
    public static QueryByCondition getInstance(){
    	return instance;
    }
	

	@SuppressWarnings("unchecked")
	public ArrayList<SaturnData> execute(String fullKey, String condition,Connection conn) throws Exception {
		return (ArrayList<SaturnData>)facade.execute(fullKey, condition, conn);
	}

}
